import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/css/normalize.css'
import '@/assets/css/iconfont.css'
import { Loading } from 'vant';
//自适应
(function () {
  const doc = document.documentElement
  let size = doc.clientWidth / 10
  window.addEventListener('resize', function () {
    size = doc.clientWidth / 10
    doc.style.fontSize = size + 'px'
  }, false)
  doc.style.fontSize = size + 'px'
})(document, window)

import axios from './http'
import { Lazyload } from 'vant';
Vue.use(Loading)
Vue.use(Lazyload)
Vue.prototype.$axios = axios
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

